package com.zjsd.sqeybusiness.domain;

import com.alibaba.fastjson.annotation.JSONField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 申请样品对象 apply_sample
 *
 * @author Zheng
 * @date 2020-11-05
 */
public class ApplySample extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 样品申请ID */
    private Long applyId;

    /** 代理商ID */
    @Excel(name = "代理商ID")
    private Long agencyId;

    /** 企业ID */
    @Excel(name = "企业ID")
    private Long companyId;

    /** 收件人 */
    @Excel(name = "收件人")
    private String name;

    /** 收件地址 */
    @Excel(name = "收件地址")
    private String address;

    /** 收件人电话 */
    @Excel(name = "收件人电话")
    private String phone;

    private Long deptId ;

    private String agencyname ;

    private Long productId ;

    private String productName ;

    private String fhbz ; //发货标志
    private String fhrxm ; //发货人姓名
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")//页面写入数据库时格式化
    @JSONField(format="yyyy-MM-dd hh:mm:ss")//数据库导出页面时json格式化
    private Date fhsj ; //发货时间
    private String bz ; //发货时间


    public void setApplyId(Long applyId)
    {
        this.applyId = applyId;
    }

    public Long getApplyId()
    {
        return applyId;
    }
    public void setAgencyId(Long agencyId)
    {
        this.agencyId = agencyId;
    }

    public Long getAgencyId()
    {
        return agencyId;
    }
    public void setCompanyId(Long companyId)
    {
        this.companyId = companyId;
    }

    public Long getCompanyId()
    {
        return companyId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getAgencyname() {
        return agencyname;
    }

    public void setAgencyname(String agencyname) {
        this.agencyname = agencyname;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getFhbz() {
        return fhbz;
    }

    public void setFhbz(String fhbz) {
        this.fhbz = fhbz;
    }

    public String getFhrxm() {
        return fhrxm;
    }

    public void setFhrxm(String fhrxm) {
        this.fhrxm = fhrxm;
    }

    public Date getFhsj() {
        return fhsj;
    }

    public void setFhsj(Date fhsj) {
        this.fhsj = fhsj;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("applyId", getApplyId())
            .append("agencyId", getAgencyId())
            .append("companyId", getCompanyId())
            .append("name", getName())
            .append("address", getAddress())
            .append("phone", getPhone())
            .append("createTime", getCreateTime())
            .append("deptId",getDeptId())
                .append("agencyname",getAgencyname())
                .append("productId",getProductId())
                .append("productName",getProductName())
                .append("fhbz",getFhbz())
                .append("fhrxm",getFhrxm())
                .append("fhsj",getFhsj())
                .append("bz",getBz())
            .toString();
    }
}
